package com.api.shopapi.service;


import com.api.shopapi.entity.ElderlyClass;
import com.api.shopapi.entity.dto.ElderlyClassDTO;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ElderlyClassService {
    int insert(ElderlyClass elderlyClass);

    int update(ElderlyClass elderlyClass);

    int delete(String elderlyClassCode);

    List<ElderlyClass> getList(String governmentCode);

    ElderlyClass getByElderlyClassCode(String elderlyClassCode);

    ElderlyClass getByNameAndGovernmentCode(String name,String governmentCode);

    ElderlyClass getByValueAndGovernmentCode(int value,String governmentCode);

    PageInfo<ElderlyClass> getPageList(int pageIndex, int pageSize, String name, String governmentCode);

    ElderlyClass getByStaffCode(String staffCode);

    ElderlyClass getByValue(int value, String governmentCode);

    ElderlyClass getByName(String name,String governmentCode);


    //列表
    PageInfo<ElderlyClassDTO> getListPage(int pageIndex, int pageSize);

}
